//
//  ByOtherCityPickerView.h
//  oc_knowledge
//
//  Created by mc on 17/1/12.
//  Copyright © 2017年 com.itboye. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ByOtherCityObject.h"
@protocol ByOtherCityPickerVieDelegate <NSObject>

@required

- (void)cityPickerViewDidChooseAddress:(ByOtherCityObject *)cityModel;

@end
#define PickerFrameChange @"PickerFrameChange"  // 选择视图打开关闭通知，类似键盘
#define ZKPickerTop @"ZKPickerTop"              // userInfo中的键，本视图的高度
@class ByOtherCityPickerView;

@interface ByOtherCityPickerView : UIView<UIPickerViewDataSource,UIPickerViewDelegate>
@property (nonatomic, assign) id<ByOtherCityPickerVieDelegate> delegate;

@property (nonatomic,strong) UIPickerView *pickerView; // 选择视图
@property (nonatomic,assign) BOOL isOpen;

@property (nonatomic,strong) NSMutableArray *cityListArray; // 城市
@property (nonatomic,strong) NSMutableArray *areaListArray; // 地区
@property (nonatomic,strong) NSMutableArray *provinceListArray; // 省

@property (nonatomic,strong) NSMutableArray *dataArray; // 总地址数组

// 标记当前点击哪一行，更新数据
@property (nonatomic,assign) NSInteger provinceRow;
@property (nonatomic,assign) NSInteger cityRow;
@property (nonatomic,assign) NSInteger areaRow;

- (instancetype)initWithPicker;
- (void)close;
- (void)open;


@end
